scala_library(
  dependencies=[
    '3rdparty/jvm/io/netty',
    '3rdparty/jvm/org/apache/curator:curator-framework',
    '3rdparty/jvm/org/apache/curator:curator-test',
    '3rdparty/jvm/org/apache/thrift:libthrift-0.5.0',
    '3rdparty/jvm/org/apache/zookeeper:zookeeper-client',
    '3rdparty/jvm/org/openjdk/jmh:jmh-core',
    '3rdparty/jvm/org/scala-lang:scala-library',
    'finagle/finagle-benchmark-thrift/src/main/thrift:thrift-scala',
    'finagle/finagle-core/src/main/scala',
    'finagle/finagle-exp/src/main/scala',
    'finagle/finagle-memcached/src/main/scala',
    'finagle/finagle-mux/src/main/scala',
    'finagle/finagle-netty3/src/main/scala',
    'finagle/finagle-netty4/src/main/scala',
    'finagle/finagle-serversets/src/main/scala',
    'finagle/finagle-stats/src/main/scala',
    'finagle/finagle-thrift/src/main/java',
    'finagle/finagle-thrift/src/main/scala',
    'finagle/finagle-thriftmux/src/main/scala',
    'finagle/finagle-zipkin/src/main/scala',
    'scrooge/scrooge-core/src/main/scala',
    'util/util-app/src/main/scala',
    'util/util-core/src/main/scala',
    'util/util-logging/src/main/scala',
    'util/util-stats/src/main/scala',
  ],
  sources=rglobs('*.scala'),
  strict_deps=True,
)

jvm_binary(
  name='lbsim',
  main='com.twitter.finagle.loadbalancer.Simulation',
  dependencies=[
    ':scala',
    'finagle/finagle-benchmark/src/main/resources'
  ]
)

jvm_binary(
  name='hello-server',
  main='com.twitter.finagle.thrift.HelloServer',
  dependencies=[':scala']
)

jvm_binary(
  name='serverset-service',
  main='com.twitter.finagle.serverset2.LocalServerSetService',
  dependencies=[':scala']
)
